module.exports = {
    devServer: {
        open: true,
        host: 'localhost',
        port: 8080,
        https: false,
        hotOnly: false,
        proxy: {
            //配置跨域
            '/v1': {
                // target:'https://imissu.herokuapp.com/api/',
                target: 'http://localhost:8888/api/private/v1/',
                // target: 'https://www.liulongbin.top:8888/api/private/v1/',
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/v1': ''
                }
            }
        },
        before: app => {}
    }
}